<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <script type="text/javascript">
   //翻页跳转
	function goPage(value){
		var totalPages = document.getElementById("totalPages").value;

			if(value == 0){
				document.getElementById("errormsg1").innerHTML="<font color='red'>本页已经是第一页！</font>";
				return;
			}else if(value > totalPages){
				document.getElementById("errormsg1").innerHTML="<font color='red'>本页是最后一页！</font>";
				return;
			}else{
				var p= document.getElementById('page');
				p.value = value;
				document.getElementById("searchForm2").submit();
			}
		}
</script>
  </head>
  
  <body>
		<div class="footer">
 <style>
.pages{ width:100.5%; text-align:right; padding:10px 0; clear:both;}
.pages span,.pages a,.pages b{ font-size:12px; font-family:Arial, Helvetica, 

sans-serif; margin:0 2px;}
.pages span font{ color:#f00; font-size:12px;}
.pages a,.pages b{ border:1px solid #5FA623; background:#fff; padding:2px 

6px; text-decoration:none}
.pages span { padding-right:10px }
.pages b,.pages a:hover{ background:#7AB63F; color:#fff;}
</style>
<input type="hidden" id="totalPages" name="totalPages" value="<s:property value='pagerResult.pager.totalPage' /> "/>
<div class="pages">
<font color='#ff0000' size='2'><b><span id="errormsg1"></span></b></font>
<span>共<font><s:property value="pagerResult.pager.totalPage"/></font>页,当前页为第<font><s:property value="pagerResult.pager.currentPage"/></font>页</span>
<a href="#" onclick="goPage(1)">首页</a>
<a href="#" onclick='goPage(<s:property value="pagerResult.pager.currentPage-1"/>);return false'>上一页</a>
<a href="#" onclick='goPage(<s:property value="pagerResult.pager.currentPage+1"/>);return false' >下一页</a>
<a href="#" onclick='goPage(<s:property value="pagerResult.pager.totalPage"/>);return false' >尾页</a>
</div>
		</div>
  </body>
</html>
